package generator.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName tem_candidate
 */
@TableName(value ="tem_candidate")
@Data
public class TemCandidate {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 招聘职位
     */
    private String vacancy;

    /**
     * 用人部门
     */
    private String employingDepartment;

    /**
     * 添加流程
     */
    private String process;

    /**
     * 姓名
     */
    private String name;

    /**
     * 性别
     */
    private String sex;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 学历
     */
    private String educationalBackground;

    /**
     * 出生日期
     */
    private Date dob;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 民族
     */
    private String nationality;

    /**
     * 婚姻状况
     */
    private String maritalStatus;

    /**
     * 籍贯
     */
    private String nativePlace;

    /**
     * 参加工作时间
     */
    private Date workTime;

    /**
     * 个人优势
     */
    private String personalAdvantages;

    /**
     * 期望职位
     */
    private String expectedPosition;

    /**
     * 期望薪资
     */
    private String salaryExpectation;

    /**
     * 工作地点
     */
    private String workLocation;

    /**
     * 工作性质
     */
    private String jobNature;

    /**
     * 到岗期限
     */
    private String arrivalTime;

    /**
     * 工作经历
     */
    private String workExperience;

    /**
     * 项目经验
     */
    private String projectExperience;

    /**
     * 培训经历
     */
    private String trainingExperience;

    /**
     * 外语能力
     */
    private String languageAbility;

    /**
     * 获奖经历
     */
    private String award;

    /**
     * 社交主页
     */
    private String socialPage;

    /**
     * 学习经历
     */
    private String learningExperience;

    /**
     * 面试官
     */
    private String interviewer;

    /**
     * 申请时间
     */
    private Date applicationTime;

    /**
     * 淘汰原因
     */
    private String causeOut;

    /**
     * 备注
     */
    private String remark;

    /**
     * 状态(0备选人才库 1淘汰人才库 )
     */
    private String state;

    /**
     * 年龄
     */
    private Integer age;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TemCandidate other = (TemCandidate) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getVacancy() == null ? other.getVacancy() == null : this.getVacancy().equals(other.getVacancy()))
            && (this.getEmployingDepartment() == null ? other.getEmployingDepartment() == null : this.getEmployingDepartment().equals(other.getEmployingDepartment()))
            && (this.getProcess() == null ? other.getProcess() == null : this.getProcess().equals(other.getProcess()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getEducationalBackground() == null ? other.getEducationalBackground() == null : this.getEducationalBackground().equals(other.getEducationalBackground()))
            && (this.getDob() == null ? other.getDob() == null : this.getDob().equals(other.getDob()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getNationality() == null ? other.getNationality() == null : this.getNationality().equals(other.getNationality()))
            && (this.getMaritalStatus() == null ? other.getMaritalStatus() == null : this.getMaritalStatus().equals(other.getMaritalStatus()))
            && (this.getNativePlace() == null ? other.getNativePlace() == null : this.getNativePlace().equals(other.getNativePlace()))
            && (this.getWorkTime() == null ? other.getWorkTime() == null : this.getWorkTime().equals(other.getWorkTime()))
            && (this.getPersonalAdvantages() == null ? other.getPersonalAdvantages() == null : this.getPersonalAdvantages().equals(other.getPersonalAdvantages()))
            && (this.getExpectedPosition() == null ? other.getExpectedPosition() == null : this.getExpectedPosition().equals(other.getExpectedPosition()))
            && (this.getSalaryExpectation() == null ? other.getSalaryExpectation() == null : this.getSalaryExpectation().equals(other.getSalaryExpectation()))
            && (this.getWorkLocation() == null ? other.getWorkLocation() == null : this.getWorkLocation().equals(other.getWorkLocation()))
            && (this.getJobNature() == null ? other.getJobNature() == null : this.getJobNature().equals(other.getJobNature()))
            && (this.getArrivalTime() == null ? other.getArrivalTime() == null : this.getArrivalTime().equals(other.getArrivalTime()))
            && (this.getWorkExperience() == null ? other.getWorkExperience() == null : this.getWorkExperience().equals(other.getWorkExperience()))
            && (this.getProjectExperience() == null ? other.getProjectExperience() == null : this.getProjectExperience().equals(other.getProjectExperience()))
            && (this.getTrainingExperience() == null ? other.getTrainingExperience() == null : this.getTrainingExperience().equals(other.getTrainingExperience()))
            && (this.getLanguageAbility() == null ? other.getLanguageAbility() == null : this.getLanguageAbility().equals(other.getLanguageAbility()))
            && (this.getAward() == null ? other.getAward() == null : this.getAward().equals(other.getAward()))
            && (this.getSocialPage() == null ? other.getSocialPage() == null : this.getSocialPage().equals(other.getSocialPage()))
            && (this.getLearningExperience() == null ? other.getLearningExperience() == null : this.getLearningExperience().equals(other.getLearningExperience()))
            && (this.getInterviewer() == null ? other.getInterviewer() == null : this.getInterviewer().equals(other.getInterviewer()))
            && (this.getApplicationTime() == null ? other.getApplicationTime() == null : this.getApplicationTime().equals(other.getApplicationTime()))
            && (this.getCauseOut() == null ? other.getCauseOut() == null : this.getCauseOut().equals(other.getCauseOut()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getAge() == null ? other.getAge() == null : this.getAge().equals(other.getAge()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getVacancy() == null) ? 0 : getVacancy().hashCode());
        result = prime * result + ((getEmployingDepartment() == null) ? 0 : getEmployingDepartment().hashCode());
        result = prime * result + ((getProcess() == null) ? 0 : getProcess().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getEducationalBackground() == null) ? 0 : getEducationalBackground().hashCode());
        result = prime * result + ((getDob() == null) ? 0 : getDob().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getNationality() == null) ? 0 : getNationality().hashCode());
        result = prime * result + ((getMaritalStatus() == null) ? 0 : getMaritalStatus().hashCode());
        result = prime * result + ((getNativePlace() == null) ? 0 : getNativePlace().hashCode());
        result = prime * result + ((getWorkTime() == null) ? 0 : getWorkTime().hashCode());
        result = prime * result + ((getPersonalAdvantages() == null) ? 0 : getPersonalAdvantages().hashCode());
        result = prime * result + ((getExpectedPosition() == null) ? 0 : getExpectedPosition().hashCode());
        result = prime * result + ((getSalaryExpectation() == null) ? 0 : getSalaryExpectation().hashCode());
        result = prime * result + ((getWorkLocation() == null) ? 0 : getWorkLocation().hashCode());
        result = prime * result + ((getJobNature() == null) ? 0 : getJobNature().hashCode());
        result = prime * result + ((getArrivalTime() == null) ? 0 : getArrivalTime().hashCode());
        result = prime * result + ((getWorkExperience() == null) ? 0 : getWorkExperience().hashCode());
        result = prime * result + ((getProjectExperience() == null) ? 0 : getProjectExperience().hashCode());
        result = prime * result + ((getTrainingExperience() == null) ? 0 : getTrainingExperience().hashCode());
        result = prime * result + ((getLanguageAbility() == null) ? 0 : getLanguageAbility().hashCode());
        result = prime * result + ((getAward() == null) ? 0 : getAward().hashCode());
        result = prime * result + ((getSocialPage() == null) ? 0 : getSocialPage().hashCode());
        result = prime * result + ((getLearningExperience() == null) ? 0 : getLearningExperience().hashCode());
        result = prime * result + ((getInterviewer() == null) ? 0 : getInterviewer().hashCode());
        result = prime * result + ((getApplicationTime() == null) ? 0 : getApplicationTime().hashCode());
        result = prime * result + ((getCauseOut() == null) ? 0 : getCauseOut().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getAge() == null) ? 0 : getAge().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", vacancy=").append(vacancy);
        sb.append(", employingDepartment=").append(employingDepartment);
        sb.append(", process=").append(process);
        sb.append(", name=").append(name);
        sb.append(", sex=").append(sex);
        sb.append(", phone=").append(phone);
        sb.append(", educationalBackground=").append(educationalBackground);
        sb.append(", dob=").append(dob);
        sb.append(", email=").append(email);
        sb.append(", nationality=").append(nationality);
        sb.append(", maritalStatus=").append(maritalStatus);
        sb.append(", nativePlace=").append(nativePlace);
        sb.append(", workTime=").append(workTime);
        sb.append(", personalAdvantages=").append(personalAdvantages);
        sb.append(", expectedPosition=").append(expectedPosition);
        sb.append(", salaryExpectation=").append(salaryExpectation);
        sb.append(", workLocation=").append(workLocation);
        sb.append(", jobNature=").append(jobNature);
        sb.append(", arrivalTime=").append(arrivalTime);
        sb.append(", workExperience=").append(workExperience);
        sb.append(", projectExperience=").append(projectExperience);
        sb.append(", trainingExperience=").append(trainingExperience);
        sb.append(", languageAbility=").append(languageAbility);
        sb.append(", award=").append(award);
        sb.append(", socialPage=").append(socialPage);
        sb.append(", learningExperience=").append(learningExperience);
        sb.append(", interviewer=").append(interviewer);
        sb.append(", applicationTime=").append(applicationTime);
        sb.append(", causeOut=").append(causeOut);
        sb.append(", remark=").append(remark);
        sb.append(", state=").append(state);
        sb.append(", age=").append(age);
        sb.append("]");
        return sb.toString();
    }
}